package com.aoxin.model.opm;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 用户
 * 
 * @author Melody
 * @date 2018年4月1日 上午10:38:33
 */
public class SlfUser implements Serializable{
	private static final long serialVersionUID = -6310899676784956779L;
	/**
	 * 详细地址是否填写(0未填写,1填写详细地址长度小于等于3提示组测失败,2.赠送立方比10个成功)
	 */
	private Integer addrDelFlag;
	/**
	 * 用户编码
	 */
	private Integer userId;
	/**
	 * 用户名称
	 */
	private String name;
	/**
	 * 用户联系电话
	 */
	private String phone;
	/**
	 * 用户二维码
	 */
	private String qrCode;
	/**
	 * 用户地址
	 */
	private  String address;
	/**
	 * 详细地址
	 */
	private String detailedAddress;

	/**
	 * 用户密码
	 */
	@JsonIgnore
	private String pwd;
	/**
	 * 注册来源
	 */
	private String source;
	/**
	 * 用户头像
	 */
	private String headPortrait;
	/**
	 * 来源ID
	 */
	private String sourceId;
	/**
	 * 账号状态
	 */
	private Integer state;
	/**
	 * 用户总立方币
	 */
	private Double lfb;
	/**
	 * 为父父级奖励金额
	 */
	private Double rmb;
	/**
	 * 用户总积分
	 */
	private Integer point;
	/**
	 * vip等级
	 */
	private Integer vipLevel;
	/**
	 * 注册时间
	 */
	private Date createDate;
	/**
	 * 微信用户唯一标识
	 */
	private String openId;
	/**
	 * token
	 */
	private String token;

	/**
	 * 上上级是否获得过奖励
	 */
	private Integer isWinners;
	/**
	 * 推广码url
	 */
	private String url;
	/**
	 * 充值合计
	 */
	private Integer rechargeTotal;
	/**
	 * 类别状态(普通用户和尊享用户)
	 */
    private Integer flag;
	/**
	 * VIP 创建时间
	 */
    private Date vipTermOfValidity;
	/**
	 * 用户加密后的id
	 */
	private String recommendId;

	public Integer getAddrDelFlag() {
		return addrDelFlag;
	}

	public void setAddrDelFlag(Integer addrDelFlag) {
		this.addrDelFlag = addrDelFlag;
	}

	public String getRecommendId() {
		return recommendId;
	}

	public void setRecommendId(String recommendId) {
		this.recommendId = recommendId;
	}

	public Date getVipTermOfValidity() {
		return vipTermOfValidity;
	}

	public void setVipTermOfValidity(Date vipTermOfValidity) {
		this.vipTermOfValidity = vipTermOfValidity;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getDetailedAddress() {
		return detailedAddress;
	}

	public void setDetailedAddress(String detailedAddress) {
		this.detailedAddress = detailedAddress;
	}
	
	public Integer getRechargeTotal() {
		return rechargeTotal;
	}

	public void setRechargeTotal(Integer rechargeTotal) {
		this.rechargeTotal = rechargeTotal;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone == null ? null : phone.trim();
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd == null ? null : pwd.trim();
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source == null ? null : source.trim();
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait == null ? null : headPortrait.trim();
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId == null ? null : sourceId.trim();
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Double getLfb() {
		return lfb;
	}

	public void setLfb(Double lfb) {
		this.lfb = lfb;
	}

	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public Integer getVipLevel() {
		return vipLevel;
	}

	public void setVipLevel(Integer vipLevel) {
		this.vipLevel = vipLevel;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	@Override
	public String toString() {
		return "SlfUser{" + "userId=" + userId + ", name='" + name + '\'' + ", phone='" + phone + '\'' + ", pwd='" + pwd + '\'' + ", source='" + source + '\'' + ", headPortrait='" + headPortrait
				+ '\'' + ", sourceId='" + sourceId + '\'' + ", state=" + state + ", lfb=" + lfb + ", point=" + point + ", vipLevel=" + vipLevel + ", createDate=" + createDate + '}';
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getQrCode() {
		return qrCode;
	}

	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}

	public Double getRmb() {
		return rmb;
	}

	public void setRmb(Double rmb) {
		this.rmb = rmb;
	}

	public Integer getIsWinners() {
		return isWinners;
	}

	public void setIsWinners(Integer isWinners) {
		this.isWinners = isWinners;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}